how to remove syntax errors in python